<div class="frame_configDiv">

<form name="configForm" id="configForm" action="administrator-game-sendmail" method="post">

  <table width="100%" border="1" cellpadding="0" cellspacing="0" bordercolor="#c8d9e9">

  	<tr>

	  <td colspan="2">邮件设置</td>

	</tr>

	<tr>

      <td valign="top" class="ri-bbgg"> from邮箱：</td>

      <td class="le"><input type="text" class="configInput" style="width:180px" value="<?php echo $this->from;?>" name="from" /></td>

    </tr>

    <tr>

      <td valign="top" class="ri-bbgg"> 邮件标题：</td>

      <td class="le"><input type="text" class="configInput" style="width:180px" value="<?php echo $this->subject;?>" name="subject" /></td>

    </tr>
    
     <tr>

      <td valign="top" class="ri-bbgg"> 昵称：</td>

      <td class="le"><input type="text" class="configInput" style="width:180px" value="<?php echo $this->nickname;?>" name="nickname" /></td>

    </tr>

	<tr>

      <td valign="top" class="ri-bbgg"> 邮件内容：</td>

      <td class="le"><textarea rows="" name="mailbody" cols="" style="width: 600px;height: 400px;overflow: auto;"><?php echo $this->mailbody;?></textarea>
      	<!-- $this->oFCKeditor->Create(); --><br>
		{email} == 邮箱名称
      </td>

    </tr>
    
    <tr>

      <td valign="top" class="ri-bbgg"> 发送：</td>

      <td class="le">
		<input type="radio" value="1" name="issend">发送</input>
		<input type="radio" value="0" name="issend">不发送</input>
      </td>

    </tr>

	<tr>

      <td colspan="2" class="se" align="center">

        <input type="button" class="iput" value="保 存"   onclick="checkform();" />　　

        <input type="button" class="iput" value="返 回" onclick="commonEffection.confirmBack();" />

      </td>

    </tr>

  </table>

  </form>

</div>

<script>

function checkform(){

	var isTrue=true;

	$('.configInput').each(

		function(){

			if(trim($(this).val())==''){

				isTrue=false;

			}

		}

	);

	if(isTrue){

		$('#configForm').submit();

	}else{

		alert('请填写完整所有信息!');

	}

}

</script>